﻿// -----------------------------------------------------------------------
// <copyright file="ICommunicator.cs" company="Softserve">
// Communicator interface
// </copyright>
// -----------------------------------------------------------------------
namespace WebServer.BusinessLogic
{
    /// <summary>
    /// Interace for communicator options
    /// </summary>
    public interface ICommunicator
    {
        /// <summary>
        /// Gets or sets a value indicating whether is Active
        /// </summary>
        bool IsActive { get; set; }

        /// <summary>
        /// Starts listening tcp
        /// </summary>
        void StartListening();

        /// <summary>
        /// Stop listening
        /// </summary>
        void StopListening();
    }
}